<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //声明一个 set ;
        let s = new Set();
        let s2 = new Set(['近段时间','回复的地方那就','而非就服你','i呕吐软件']);

        //元素个数;
        //console.log(s2.size);
        //添加新元素;
        // s2.add('李欣雨');
        //删除元素;
        // s2.delete('李欣雨');
        //检测;
        //console.log(s2.has('连续'));
        //清空;
        s2.clear();
        console.log(s2)

        for(let v of s2){
            console.log(v);
        }
    </script>
</body>
</html>